/* EXIT POLL */
 
/* Descriptive statistics */
sum Casino Soccosts Econ SocEcon adcorr regval gocas distrust topvote pid age minority female gknow education online attention atteonline
tab attention
tab online
tab atteonline
tab attention atteonline
tab online atteonline
 
/* Figure 9: Treatment group means, unadjusted and by Attention/NE */
/* Combined Attention/NE */
sum (Casino)  if Soccosts == 0 & Econ == 0 & SocEcon == 0
tab Soccosts, sum(Casino)
tab Econ, sum(Casino)
tab SocEcon, sum(Casino)

/* Low Attention/Low NE */
sum (Casino)  if Soccosts == 0 & Econ == 0 & SocEcon == 0 &  atteonline == 0
tab Soccosts, sum(Casino), if  atteonline == 0
tab Econ, sum(Casino), if  atteonline == 0
tab SocEcon, sum(Casino), if  atteonline == 0
 
/* High Attention/High NE */
 sum (Casino)  if Soccosts == 0 & Econ == 0 & SocEcon == 0 &  atteonline == 1
tab Soccosts, sum(Casino), if  atteonline == 1
tab Econ, sum(Casino), if  atteonline == 1
tab SocEcon, sum(Casino), if  atteonline == 1
 
/* T-tests for Figure 9 */
ttest Casino, by(atteonline)
ttest Casino, by(Soccosts), if ((Soccosts == 1 | control == 1) & atteonline ==1)
ttest Casino, by(Soccosts), if (Soccosts == 1 | control == 1)
ttest Casino, by(Econ), if (Econ == 1 | control == 1)
ttest Casino, by( SocEcon), if ( SocEcon == 1 | control == 1)
ttest Casino, by(Soccosts), if (Soccosts == 1 | control == 1) &  atteonline == 0
ttest Casino, by(Econ), if (Econ == 1 | control == 1) &  atteonline == 0
ttest Casino, by( SocEcon), if ( SocEcon == 1 | control == 1) &  atteonline == 0
ttest Casino, by(Soccosts), if (Soccosts == 1 | control == 1) &  atteonline == 1
ttest Casino, by(Econ), if (Econ == 1 | control == 1) &  atteonline == 1
ttest Casino, by( SocEcon), if ( SocEcon == 1 | control == 1) &  atteonline == 1
ttest Casino, by(atteonline), if control == 1
ttest Casino, by(atteonline), if  Econ == 1
ttest Casino, by(atteonline), if   Soccosts == 1
ttest Casino, by(atteonline), if    SocEcon == 1
ttest Casino, by(atteonline), if  Econ == 0
 
/* Regression results in Appendix C */
oprobit Casino  Soccosts Econ SocEcon  regval gocas adcorr distrust topvote  pid female minority age gknow education
oprobit Casino  Soccosts Econ SocEcon  regval gocas adcorr distrust topvote  pid female minority age gknow education if  atteonline == 0
oprobit Casino  Soccosts Econ SocEcon  regval gocas adcorr distrust topvote  pid female minority age gknow education if  atteonline == 1
oprobit Casino  Soccosts Econ SocEcon  regval gocas adcorr distrust topvote  pid female minority age gknow education atteonline  attonlsocco attonlecon attonlsoceco